﻿@using Lari.Configuration
@if (User.Identity.IsAuthenticated)
{
    var controller = Url.RequestContext.RouteData.Values["controller"] as string;

    var masterClass = (controller == ControllerConst.Masters.CoreMaster) || (controller==ControllerConst.Masters.HRMaster) ? "selected" : string.Empty;
    var userClass = controller == ControllerConst.Users ? "selected" : string.Empty;
    
    <ul class="main-module">
        <li class="@masterClass"> @Html.ActionLink("Master Management", "Index", ControllerConst.Masters.CoreMaster)</li>
        <li  class="@userClass"> @Html.ActionLink("User Management", "Index", ControllerConst.Users)</li>
    </ul>
    
}
else
{
    <text>
        &nbsp;
    </text>
}
